import dayjs from 'dayjs';

export default [
  {
    title: '生产型号',
    key: 'moduleNo'
  },
  {
    key: 'modifyTime',
    title: '录入时间',
    customRender: row => {
      return dayjs(row.modifyTime).format('YYYY-MM-DD HH:mm:ss');
    }
  },
  { key: 'inspectType', title: '检验类型' },
  { key: 'quantity', title: '检验数量(PNL)' },
  { key: 'drawingChangeChecks', title: '工程图变更检查' },
  { key: 'areaTrea', title: '表面处理类型' },
  { key: 'thickness', title: '板厚(mm)' },
  { key: 'copperThick', title: '铜厚(oz)' },
  { key: 'coatingCopperThickness', title: '包覆铜厚(um)' },
  { key: 'areaCopperRequired', title: '面铜厚度要求(um)' },
  { key: 'leftTopBrassA', title: 'A面左上面铜实测(um)' },
  { key: 'leftCentreBrassA', title: 'A面左中面铜实测(um)' },
  { key: 'leftBelowBrassA', title: 'A面左下面铜实测(um)' },
  { key: 'centreTopBrassA', title: 'A面中上面铜实测(um)' },
  { key: 'centreCentreBrassA', title: 'A面中中面铜实测(um)' },
  { key: 'centreBelowBrassA', title: 'A面中下面铜实测(um)' },
  { key: 'rightTopBrassA', title: 'A面右上面铜实测(um)' },
  { key: 'rightCentreBrassA', title: 'A面右中面铜实测(um)' },
  { key: 'rightBelowBrassA', title: 'A面右下面铜实测(um)' },
  { key: 'leftTopBrassB', title: 'B面左上面铜实测(um)' },
  { key: 'leftCentreBrassB', title: 'B面左中面铜实测(um)' },
  { key: 'leftBelowBrassB', title: 'B面左下面铜实测(um)' },
  { key: 'centreTopBrassB', title: 'B面中上面铜实测(um)' },
  { key: 'centreCentreBrassB', title: 'B面中中面铜实测(um)' },
  { key: 'centreBelowBrassB', title: 'B面中下面铜实测(um)' },
  { key: 'rightTopBrassB', title: 'B面右上面铜实测(um)' },
  { key: 'rightCentreBrassB', title: 'B面右中面铜实测(um)' },
  { key: 'rightBelowBrassB', title: 'B面右下面铜实测(um)' },
  { key: 'result', title: '判定' },
  { key: 'ngNum', title: '不良数' },
  { key: 'ngRatio', title: '不良率' },
  {
    key: 'shiftType',
    title: '班别',
    customRender: row => {
      return ['白班', '夜班'][row.shiftType];
    }
  },
  { key: 'operator', title: '检验员' },
  { key: 'checker', title: '审核人' },
  { key: 'checkTime', title: '审核时间' },
  { key: 'remark', title: '备注' }
];
